import javax.microedition.lcdui.Canvas;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Form;
public class Manager {
    private static Display display;
    public static Splash C_Splash;
    public static Menu F_Menu;
    public static GameBackground GameBackground;  
    public static GameSprite GameSprite;
//    public static GridView F_HOME;
//    public static mPlayer F_PLAYER;
//    public static Categories F_CATEGORY;
//    public static f_readsong F_SONG;
//    public static f_readsong F_SONG1;
//    public static f_readplaylist F_PLAYLIST;
//    public static Search F_SEARCH;
//    public static Info   INFO;

    public Manager(){
    }
    public static void loadApp(Display display){
        Manager.display = display;
        C_Splash = new Splash();
        F_Menu = new Menu();
        GameBackground = new GameBackground();
        GameSprite = new GameSprite();
//        SERVER = "http://localhost/musicapp/";
//        F_HOME = new GridView();    
//        F_PLAYER = new mPlayer();
//        F_CATEGORY = new Categories();
//        F_SONG = new f_readsong(0);
//        F_SONG1 = new f_readsong(1);
//        F_PLAYLIST = new f_readplaylist(1);
//        F_SEARCH = new Search();
//        INFO     = new Info();
        
    }
    public static void setCurrent(Canvas view){
        display.setCurrent(view);
    }
    public static void setCurrent(Form view){
        display.setCurrent(view);
        
    }
    
}
